package ChrisC;


import org.uispec4j.Button;
import org.uispec4j.ComboBox;
import org.uispec4j.Table;
import org.uispec4j.UISpecTestCase;
import org.uispec4j.Window;

public class CreateAuctionTest extends UISpecTestCase {
	
	
	public void testCreatingAction() throws Exception {
		
		 Window window = getMainWindow();
		 ComboBox categComboBox = window.getComboBox();
		 Button newClearButton = window.getButton("Clear");
		 Button newSubmitButton = window.getButton("Submit");
		 
		 
		 categComboBox.select("Computing");
		 newSubmitButton.click();
		 categComboBox.selectionEquals("Computing");
		 window.getTextBox("Name").setText("TestProduct");
		  window.getTextBox("Price").setText("12345");
		  assertTrue(window.getTextBox("Name").equals("TestProduct")&&
				  window.getTextBox("Price").equals("12345")
				  );
		 
		 
		 
	}

}
